ARM: VGIC: factor out vgic_get_hw_irq_desc()
authorAndre Przywara <andre.przywara@linaro.org>
Tue, 6 Feb 2018 17:09:01 +0000 (17:09 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 8 Feb 2018 21:18:11 +0000 (13:18 -0800)
commit2ab72fa18df8538bd79148cff1bea29be9faf019
treef47c0d7db3b02bc310f764e65378d521853bfe98
parentec2a2f1de4a98bef1f0d993b2fea6b750223d1fc
ARM: VGIC: factor out vgic_get_hw_irq_desc()

At the moment we happily access the VGIC internal struct pending_irq
(which describes a virtual IRQ) in irq.c.
Factor out the actually needed functionality to learn the associated
hardware IRQ and move that into gic-vgic.c to improve abstraction.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/gic-vgic.c
xen/arch/arm/irq.c
xen/include/asm-arm/vgic.h